package com.rd.teacher.jichao.day22;

public class SonSon extends Son{
    int num2;
    public SonSon(){
        // 父类的结构
        super.num = 1;
        super.num1 = 2;
        super.test();
    }
}

class Son extends Parent{
    int num1;
    // 继承是一次代码的复用和拷贝
//    int num;

    public void test(){
        return;
    }

    private void test1(){}
}
class Parent{
    int num;
}
